package com.example.hengjun.operation_oracle.advance.generic;

public class GenericMethodDemo {
    public static void main(String[] args) {
        Integer[] integers = {1, 2, 3, 4, 5};
        String[] strings = {"a", "b", "c"};
        GenericMethodDemo.<Integer>print(integers);
        print(strings);

    }
    public static <E> void print(E[] list) {
        for(E e:list){
            System.out.println(e.toString());
        }
    }
}
